package com.bycx.system.service.impl;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bycx.core.constant.PubBusinessConstant;
import com.bycx.system.dto.ASysOrgDTO;
import com.bycx.system.dto.mapper.ASysOrgDtoMapper;
import com.bycx.system.mapper.ASysOrgMapper;
import com.bycx.system.mapper.ASysUserOrgMapper;
import com.bycx.system.model.ASysOrg;
import com.bycx.system.service.IASysOrgService;

@Service
public class ASysOrgServiceImpl implements IASysOrgService{
	@Autowired
	private ASysOrgMapper aSysOrgMapper;
	@Autowired
	private ASysUserOrgMapper aSysUserOrgMapper;
	@Autowired
	private ASysOrgDtoMapper aSysOrgDtoMapper;
	
	@Override
	public ASysOrg get(Map<String,Object> map){
		return aSysOrgMapper.get(map);
	}
	@Override
	public List<ASysOrg> getList(Map<String,Object> map){
		return aSysOrgMapper.getList(map);
	}
	
	@Override
	public List<ASysOrgDTO> getListBo(Map<String, Object> params) {
		return aSysOrgMapper.getListBo(params);
	}
	
	/**
	 * 获取用户拥有的机构
	 * @param loginName
	 * @return
	 */
	public List<ASysOrg> getOrgList(String loginName){
		Map<String,Object> param = new HashMap<String,Object>();
		param.put("stat", PubBusinessConstant.YES);
		param.put("loginName", loginName);
		List<ASysOrg> lst = aSysOrgDtoMapper.getOrgList(param);
		return lst;
	}
	@Override
	public void setBaseMapper() {
		// TODO Auto-generated method stub
		
	}
	@Override
	public ASysOrg getByPrimaryKey(Serializable primaryKey) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public ASysOrg get(String propName, String value) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<ASysOrg> getList(String propName, String value) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public void save(ASysOrg t) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void updateByPrimaryKey(ASysOrg t) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void deleteByPrimaryKey(Serializable primaryKey) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void delete(List<String> ids) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void deleteObj(List<ASysOrg> list) {
		// TODO Auto-generated method stub
		
	}
	
	
	
	
}

